package com.ourteam.system.dao;

import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;

import org.apache.commons.lang.StringUtils;

import java.util.Arrays;
import java.util.List;
import java.util.Map;


/**
 * Template Name : DAO查询对象
 * Template Version : 1
 * Template Last Modfiy Date : Sat Aug 19 10:06:32 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:28
  * Warning ! This file will be overwrite when regenerate !
  *
 */
public class SysRoleActionRelateDAOQueryBean extends BaseQueryBean {
    public SysRoleActionRelateDAOQueryBean() {
        super();
    }

    public SysRoleActionRelateDAOQueryBean(BaseQueryBean aQueryBean) {
        super(aQueryBean);
    }

    public SysRoleActionRelateDAOQueryBean(BaseQueryBean aQueryBean,
        Map tableReplaceMap) {
        super(aQueryBean, tableReplaceMap);
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();

        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }

        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        return new Criteria(this);
    }

    public void addIdSelectProperty() {
        addIdSelectProperty("id");
    }

    public void addIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.Id, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.Id, "id");
        }
    }

    public void addActionIdSelectProperty() {
        addActionIdSelectProperty("actionId");
    }

    public void addActionIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.ActionId, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.ActionId, "actionId");
        }
    }

    public void addRemarksSelectProperty() {
        addRemarksSelectProperty("remarks");
    }

    public void addRemarksSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.Remarks, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.Remarks, "remarks");
        }
    }

    public void addRoleIdSelectProperty() {
        addRoleIdSelectProperty("roleId");
    }

    public void addRoleIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.RoleId, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.RoleId, "roleId");
        }
    }

    public void addStatusSelectProperty() {
        addStatusSelectProperty("status");
    }

    public void addStatusSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.Status, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.Status, "status");
        }
    }

    public void addActionCodeSelectProperty() {
        addActionCodeSelectProperty("actionCode");
    }

    public void addActionCodeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.ActionCode, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.ActionCode, "actionCode");
        }
    }

    public void addActionNameSelectProperty() {
        addActionNameSelectProperty("actionName");
    }

    public void addActionNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.ActionName, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.ActionName, "actionName");
        }
    }

    public void addDomainIdSelectProperty() {
        addDomainIdSelectProperty("domainId");
    }

    public void addDomainIdSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.DomainId, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.DomainId, "domainId");
        }
    }

    public void addDomainCodeSelectProperty() {
        addDomainCodeSelectProperty("domainCode");
    }

    public void addDomainCodeSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.DomainCode, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.DomainCode, "domainCode");
        }
    }

    public void addDomainNameSelectProperty() {
        addDomainNameSelectProperty("domainName");
    }

    public void addDomainNameSelectProperty(String aAlias) {
        if (StringUtils.isNotBlank(aAlias)) {
            addSelectProperty(ISysRoleActionRelateDAO.DomainName, aAlias);
        } else {
            addSelectProperty(ISysRoleActionRelateDAO.DomainName, "domainName");
        }
    }

    public void addAllSelectProperties() {
        addIdSelectProperty();

        addActionIdSelectProperty();

        addRemarksSelectProperty();

        addRoleIdSelectProperty();

        addStatusSelectProperty();

        addActionCodeSelectProperty();

        addActionNameSelectProperty();

        addDomainIdSelectProperty();

        addDomainCodeSelectProperty();

        addDomainNameSelectProperty();
    }

    public static class Criteria extends BaseWhereCriterion<SysRoleActionRelateDAOQueryBean> {
        protected Criteria(SysRoleActionRelateDAOQueryBean aParentObject) {
            super(aParentObject);
        }

        public Criteria andIdIsNull() {
            addCriterion(ISysRoleActionRelateDAO.Id + " is null");

            return this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.Id + " is not null");

            return this;
        }

        public Criteria andIdIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.Id + " is not null AND " +
                ISysRoleActionRelateDAO.Id + " <> ''");

            return this;
        }

        public Criteria andIdIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.Id + " is null OR " +
                ISysRoleActionRelateDAO.Id + " = '')");

            return this;
        }

        public Criteria andIdEqualTo(long value) {
            return andIdEqualTo(Long.valueOf(value));
        }

        public Criteria andIdEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " = ", value, "id");

            return this;
        }

        public Criteria andIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " = ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotEqualTo(long value) {
            return andIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToOrIsNull(long value) {
            return andIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " is null OR " +
                ISysRoleActionRelateDAO.Id + " <>", value, "id");

            return this;
        }

        public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " <> ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThan(long value) {
            return andIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " >", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " > ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(long value) {
            return andIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " >=", value, "id");

            return this;
        }

        public Criteria andIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdGreaterThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " >= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThan(long value) {
            return andIdLessThan(Long.valueOf(value));
        }

        public Criteria andIdLessThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " <", value, "id");

            return this;
        }

        public Criteria andIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " < ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(long value) {
            return andIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.Id + " <=", value, "id");

            return this;
        }

        public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Id);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " <= ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdIn(long[] values) {
            if (values.length == 1) {
                return andIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " in", values, "id");

                return this;
            }
        }

        public Criteria andIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " not in", values,
                    "id");

                return this;
            }
        }

        public Criteria andIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Id + " not in",
                    Arrays.asList(values), "id");

                return this;
            }
        }

        public Criteria andIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " in ", subQueryBean, dao);

            return this;
        }

        public Criteria andIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Id + " not in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andIdBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.Id + " between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.Id + " not between", value1,
                value2, "id");

            return this;
        }

        public Criteria andActionIdIsNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " is null");

            return this;
        }

        public Criteria andActionIdIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " is not null");

            return this;
        }

        public Criteria andActionIdIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.ActionId +
                " is not null AND " + ISysRoleActionRelateDAO.ActionId +
                " <> ''");

            return this;
        }

        public Criteria andActionIdIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.ActionId +
                " is null OR " + ISysRoleActionRelateDAO.ActionId + " = '')");

            return this;
        }

        public Criteria andActionIdEqualTo(long value) {
            return andActionIdEqualTo(Long.valueOf(value));
        }

        public Criteria andActionIdEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " = ", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdNotEqualTo(long value) {
            return andActionIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andActionIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " <>", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdNotEqualToOrIsNull(long value) {
            return andActionIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andActionIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " is null OR " +
                ISysRoleActionRelateDAO.ActionId + " <>", value, "actionId");

            return this;
        }

        public Criteria andActionIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdGreaterThan(long value) {
            return andActionIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andActionIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " >", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdGreaterThanOrEqualTo(long value) {
            return andActionIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andActionIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " >=", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdLessThan(long value) {
            return andActionIdLessThan(Long.valueOf(value));
        }

        public Criteria andActionIdLessThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " <", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdLessThanOrEqualTo(long value) {
            return andActionIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andActionIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " <=", value,
                "actionId");

            return this;
        }

        public Criteria andActionIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdIn(long[] values) {
            if (values.length == 1) {
                return andActionIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " in", values,
                    "actionId");

                return this;
            }
        }

        public Criteria andActionIdNotIn(long[] values) {
            if (values.length == 1) {
                return andActionIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " not in",
                    values, "actionId");

                return this;
            }
        }

        public Criteria andActionIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andActionIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " in", values,
                    "actionId");

                return this;
            }
        }

        public Criteria andActionIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andActionIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " not in",
                    values, "actionId");

                return this;
            }
        }

        public Criteria andActionIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andActionIdEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " in",
                    Arrays.asList(values), "actionId");

                return this;
            }
        }

        public Criteria andActionIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andActionIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionId + " not in",
                    Arrays.asList(values), "actionId");

                return this;
            }
        }

        public Criteria andActionIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionIdBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " between", value1,
                value2, "actionId");

            return this;
        }

        public Criteria andActionIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " between", value1,
                value2, "actionId");

            return this;
        }

        public Criteria andActionIdNotBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " not between",
                value1, value2, "actionId");

            return this;
        }

        public Criteria andActionIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionId + " not between",
                value1, value2, "actionId");

            return this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " is null");

            return this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " is not null");

            return this;
        }

        public Criteria andRemarksIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " is not null AND " +
                ISysRoleActionRelateDAO.Remarks + " <> ''");

            return this;
        }

        public Criteria andRemarksIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.Remarks +
                " is null OR " + ISysRoleActionRelateDAO.Remarks + " = '')");

            return this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " = ", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " <>", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " is null OR " +
                ISysRoleActionRelateDAO.Remarks + " <>", value, "remarks");

            return this;
        }

        public Criteria andRemarksNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " >", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " >=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " <", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " <=", value,
                "remarks");

            return this;
        }

        public Criteria andRemarksLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Remarks);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRemarksLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.Remarks + " like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.Remarks + " not like",
                buffer.toString(), "remarks");

            return this;
        }

        public Criteria andRemarksIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Remarks + " in", values,
                    "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(List<String> values) {
            if (values.size() == 1) {
                return andRemarksNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Remarks + " not in",
                    values, "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(String[] values) {
            if (values.length == 1) {
                return andRemarksEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Remarks + " in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksNotIn(String[] values) {
            if (values.length == 1) {
                return andRemarksNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Remarks + " not in",
                    Arrays.asList(values), "remarks");

                return this;
            }
        }

        public Criteria andRemarksIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " between", value1,
                value2, "remarks");

            return this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.Remarks + " not between",
                value1, value2, "remarks");

            return this;
        }

        public Criteria andRoleIdIsNull() {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " is null");

            return this;
        }

        public Criteria andRoleIdIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " is not null");

            return this;
        }

        public Criteria andRoleIdIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " is not null AND " +
                ISysRoleActionRelateDAO.RoleId + " <> ''");

            return this;
        }

        public Criteria andRoleIdIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.RoleId + " is null OR " +
                ISysRoleActionRelateDAO.RoleId + " = '')");

            return this;
        }

        public Criteria andRoleIdEqualTo(long value) {
            return andRoleIdEqualTo(Long.valueOf(value));
        }

        public Criteria andRoleIdEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " = ", value, "roleId");

            return this;
        }

        public Criteria andRoleIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdNotEqualTo(long value) {
            return andRoleIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andRoleIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " <>", value, "roleId");

            return this;
        }

        public Criteria andRoleIdNotEqualToOrIsNull(long value) {
            return andRoleIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andRoleIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " is null OR " +
                ISysRoleActionRelateDAO.RoleId + " <>", value, "roleId");

            return this;
        }

        public Criteria andRoleIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdGreaterThan(long value) {
            return andRoleIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andRoleIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " >", value, "roleId");

            return this;
        }

        public Criteria andRoleIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(long value) {
            return andRoleIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " >=", value, "roleId");

            return this;
        }

        public Criteria andRoleIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdLessThan(long value) {
            return andRoleIdLessThan(Long.valueOf(value));
        }

        public Criteria andRoleIdLessThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " <", value, "roleId");

            return this;
        }

        public Criteria andRoleIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(long value) {
            return andRoleIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andRoleIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " <=", value, "roleId");

            return this;
        }

        public Criteria andRoleIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.RoleId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andRoleIdLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdIn(long[] values) {
            if (values.length == 1) {
                return andRoleIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " in", values,
                    "roleId");

                return this;
            }
        }

        public Criteria andRoleIdNotIn(long[] values) {
            if (values.length == 1) {
                return andRoleIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " not in",
                    values, "roleId");

                return this;
            }
        }

        public Criteria andRoleIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andRoleIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " in", values,
                    "roleId");

                return this;
            }
        }

        public Criteria andRoleIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andRoleIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " not in",
                    values, "roleId");

                return this;
            }
        }

        public Criteria andRoleIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andRoleIdEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " in",
                    Arrays.asList(values), "roleId");

                return this;
            }
        }

        public Criteria andRoleIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andRoleIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.RoleId + " not in",
                    Arrays.asList(values), "roleId");

                return this;
            }
        }

        public Criteria andRoleIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andRoleIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andRoleIdBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " between", value1,
                value2, "roleId");

            return this;
        }

        public Criteria andRoleIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " between", value1,
                value2, "roleId");

            return this;
        }

        public Criteria andRoleIdNotBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " not between",
                value1, value2, "roleId");

            return this;
        }

        public Criteria andRoleIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.RoleId + " not between",
                value1, value2, "roleId");

            return this;
        }

        public Criteria andStatusIsNull() {
            addCriterion(ISysRoleActionRelateDAO.Status + " is null");

            return this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.Status + " is not null");

            return this;
        }

        public Criteria andStatusIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.Status + " is not null AND " +
                ISysRoleActionRelateDAO.Status + " <> ''");

            return this;
        }

        public Criteria andStatusIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.Status + " is null OR " +
                ISysRoleActionRelateDAO.Status + " = '')");

            return this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " = ", value, "status");

            return this;
        }

        public Criteria andStatusEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " = ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " is null OR " +
                ISysRoleActionRelateDAO.Status + " <>", value, "status");

            return this;
        }

        public Criteria andStatusNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " <> ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " >", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " > ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " >=", value, "status");

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " >= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " <", value, "status");

            return this;
        }

        public Criteria andStatusLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " < ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.Status + " <=", value, "status");

            return this;
        }

        public Criteria andStatusLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.Status);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andStatusLessThanOrEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " <= ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.Status + " like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.Status + " not like",
                buffer.toString(), "status");

            return this;
        }

        public Criteria andStatusIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Status + " in", values,
                    "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(List<String> values) {
            if (values.size() == 1) {
                return andStatusNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.Status + " not in",
                    values, "status");

                return this;
            }
        }

        public Criteria andStatusIn(String[] values) {
            if (values.length == 1) {
                return andStatusEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Status + " in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusNotIn(String[] values) {
            if (values.length == 1) {
                return andStatusNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.Status + " not in",
                    Arrays.asList(values), "status");

                return this;
            }
        }

        public Criteria andStatusIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " in ", subQueryBean,
                dao);

            return this;
        }

        public Criteria andStatusNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.Status + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.Status + " between", value1,
                value2, "status");

            return this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.Status + " not between",
                value1, value2, "status");

            return this;
        }

        public Criteria andActionCodeIsNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " is null");

            return this;
        }

        public Criteria andActionCodeIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " is not null");

            return this;
        }

        public Criteria andActionCodeIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.ActionCode +
                " is not null AND " + ISysRoleActionRelateDAO.ActionCode +
                " <> ''");

            return this;
        }

        public Criteria andActionCodeIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.ActionCode +
                " is null OR " + ISysRoleActionRelateDAO.ActionCode + " = '')");

            return this;
        }

        public Criteria andActionCodeEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " = ", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " <>", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " is null OR " +
                ISysRoleActionRelateDAO.ActionCode + " <>", value, "actionCode");

            return this;
        }

        public Criteria andActionCodeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " >", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " >=", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " <", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " <=", value,
                "actionCode");

            return this;
        }

        public Criteria andActionCodeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionCode);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionCodeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " like",
                buffer.toString(), "actionCode");

            return this;
        }

        public Criteria andActionCodeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " not like",
                buffer.toString(), "actionCode");

            return this;
        }

        public Criteria andActionCodeIn(List<String> values) {
            if (values.size() == 1) {
                return andActionCodeEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionCode + " in",
                    values, "actionCode");

                return this;
            }
        }

        public Criteria andActionCodeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andActionCodeNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionCode + " not in",
                    values, "actionCode");

                return this;
            }
        }

        public Criteria andActionCodeIn(String[] values) {
            if (values.length == 1) {
                return andActionCodeEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionCode + " in",
                    Arrays.asList(values), "actionCode");

                return this;
            }
        }

        public Criteria andActionCodeNotIn(String[] values) {
            if (values.length == 1) {
                return andActionCodeNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionCode + " not in",
                    Arrays.asList(values), "actionCode");

                return this;
            }
        }

        public Criteria andActionCodeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionCodeBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " between",
                value1, value2, "actionCode");

            return this;
        }

        public Criteria andActionCodeNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionCode + " not between",
                value1, value2, "actionCode");

            return this;
        }

        public Criteria andActionNameIsNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " is null");

            return this;
        }

        public Criteria andActionNameIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " is not null");

            return this;
        }

        public Criteria andActionNameIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.ActionName +
                " is not null AND " + ISysRoleActionRelateDAO.ActionName +
                " <> ''");

            return this;
        }

        public Criteria andActionNameIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.ActionName +
                " is null OR " + ISysRoleActionRelateDAO.ActionName + " = '')");

            return this;
        }

        public Criteria andActionNameEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " = ", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " <>", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " is null OR " +
                ISysRoleActionRelateDAO.ActionName + " <>", value, "actionName");

            return this;
        }

        public Criteria andActionNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " >", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " >=", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " <", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " <=", value,
                "actionName");

            return this;
        }

        public Criteria andActionNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.ActionName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andActionNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.ActionName + " like",
                buffer.toString(), "actionName");

            return this;
        }

        public Criteria andActionNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.ActionName + " not like",
                buffer.toString(), "actionName");

            return this;
        }

        public Criteria andActionNameIn(List<String> values) {
            if (values.size() == 1) {
                return andActionNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionName + " in",
                    values, "actionName");

                return this;
            }
        }

        public Criteria andActionNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andActionNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionName + " not in",
                    values, "actionName");

                return this;
            }
        }

        public Criteria andActionNameIn(String[] values) {
            if (values.length == 1) {
                return andActionNameEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionName + " in",
                    Arrays.asList(values), "actionName");

                return this;
            }
        }

        public Criteria andActionNameNotIn(String[] values) {
            if (values.length == 1) {
                return andActionNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.ActionName + " not in",
                    Arrays.asList(values), "actionName");

                return this;
            }
        }

        public Criteria andActionNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andActionNameBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " between",
                value1, value2, "actionName");

            return this;
        }

        public Criteria andActionNameNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.ActionName + " not between",
                value1, value2, "actionName");

            return this;
        }

        public Criteria andDomainIdIsNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " is null");

            return this;
        }

        public Criteria andDomainIdIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " is not null");

            return this;
        }

        public Criteria andDomainIdIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.DomainId +
                " is not null AND " + ISysRoleActionRelateDAO.DomainId +
                " <> ''");

            return this;
        }

        public Criteria andDomainIdIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.DomainId +
                " is null OR " + ISysRoleActionRelateDAO.DomainId + " = '')");

            return this;
        }

        public Criteria andDomainIdEqualTo(long value) {
            return andDomainIdEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " = ", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotEqualTo(long value) {
            return andDomainIdNotEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " <>", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToOrIsNull(long value) {
            return andDomainIdNotEqualToOrIsNull(Long.valueOf(value));
        }

        public Criteria andDomainIdNotEqualToOrIsNull(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " is null OR " +
                ISysRoleActionRelateDAO.DomainId + " <>", value, "domainId");

            return this;
        }

        public Criteria andDomainIdNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThan(long value) {
            return andDomainIdGreaterThan(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " >", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(long value) {
            return andDomainIdGreaterThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " >=", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThan(long value) {
            return andDomainIdLessThan(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThan(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " <", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(long value) {
            return andDomainIdLessThanOrEqualTo(Long.valueOf(value));
        }

        public Criteria andDomainIdLessThanOrEqualTo(java.lang.Long value) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " <=", value,
                "domainId");

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainId);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainIdLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo((java.lang.Long) values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " not in",
                    values, "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " in", values,
                    "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(List<java.lang.Long> values) {
            if (values.size() == 1) {
                return andDomainIdNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " not in",
                    values, "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdNotIn(java.lang.Long[] values) {
            if (values.length == 1) {
                return andDomainIdNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainId + " not in",
                    Arrays.asList(values), "domainId");

                return this;
            }
        }

        public Criteria andDomainIdIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainIdBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " between", value1,
                value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(long value1, long value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " not between",
                value1, value2, "domainId");

            return this;
        }

        public Criteria andDomainIdNotBetween(java.lang.Long value1,
            java.lang.Long value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainId + " not between",
                value1, value2, "domainId");

            return this;
        }

        public Criteria andDomainCodeIsNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " is null");

            return this;
        }

        public Criteria andDomainCodeIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " is not null");

            return this;
        }

        public Criteria andDomainCodeIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.DomainCode +
                " is not null AND " + ISysRoleActionRelateDAO.DomainCode +
                " <> ''");

            return this;
        }

        public Criteria andDomainCodeIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.DomainCode +
                " is null OR " + ISysRoleActionRelateDAO.DomainCode + " = '')");

            return this;
        }

        public Criteria andDomainCodeEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " = ", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " <>", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " is null OR " +
                ISysRoleActionRelateDAO.DomainCode + " <>", value, "domainCode");

            return this;
        }

        public Criteria andDomainCodeNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " >", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " >=", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " <", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " <=", value,
                "domainCode");

            return this;
        }

        public Criteria andDomainCodeLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainCode);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainCodeLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " like",
                buffer.toString(), "domainCode");

            return this;
        }

        public Criteria andDomainCodeNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " not like",
                buffer.toString(), "domainCode");

            return this;
        }

        public Criteria andDomainCodeIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainCodeEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainCode + " in",
                    values, "domainCode");

                return this;
            }
        }

        public Criteria andDomainCodeNotIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainCodeNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainCode + " not in",
                    values, "domainCode");

                return this;
            }
        }

        public Criteria andDomainCodeIn(String[] values) {
            if (values.length == 1) {
                return andDomainCodeEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainCode + " in",
                    Arrays.asList(values), "domainCode");

                return this;
            }
        }

        public Criteria andDomainCodeNotIn(String[] values) {
            if (values.length == 1) {
                return andDomainCodeNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainCode + " not in",
                    Arrays.asList(values), "domainCode");

                return this;
            }
        }

        public Criteria andDomainCodeIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainCodeBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " between",
                value1, value2, "domainCode");

            return this;
        }

        public Criteria andDomainCodeNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainCode + " not between",
                value1, value2, "domainCode");

            return this;
        }

        public Criteria andDomainNameIsNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " is null");

            return this;
        }

        public Criteria andDomainNameIsNotNull() {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " is not null");

            return this;
        }

        public Criteria andDomainNameIsNotEmpty() {
            addCriterion(ISysRoleActionRelateDAO.DomainName +
                " is not null AND " + ISysRoleActionRelateDAO.DomainName +
                " <> ''");

            return this;
        }

        public Criteria andDomainNameIsEmpty() {
            addCriterion("(" + ISysRoleActionRelateDAO.DomainName +
                " is null OR " + ISysRoleActionRelateDAO.DomainName + " = '')");

            return this;
        }

        public Criteria andDomainNameEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " = ", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" = ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " = ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameNotEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " <>", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameNotEqualToOrIsNull(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " is null OR " +
                ISysRoleActionRelateDAO.DomainName + " <>", value, "domainName");

            return this;
        }

        public Criteria andDomainNameNotEqualToForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" <> ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameNotEqualTo(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " <> ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameGreaterThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " >", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameGreaterThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" > ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameGreaterThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " > ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " >=", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" >= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameGreaterThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " >= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLessThan(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " <", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameLessThanForeignKey(java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" < ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameLessThan(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " < ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualTo(String value) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " <=", value,
                "domainName");

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualToForeignKey(
            java.lang.String key) {
            StringBuffer str = new StringBuffer(ISysRoleActionRelateDAO.DomainName);
            str.append(" <= ").append(key);
            addForeignKeyCriterion(str.toString());

            return this;
        }

        public Criteria andDomainNameLessThanOrEqualTo(
            BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " <= ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.DomainName + " like",
                buffer.toString(), "domainName");

            return this;
        }

        public Criteria andDomainNameNotLike(String value) {
            StringBuffer buffer = new StringBuffer("%");
            buffer.append(value);
            buffer.append("%");
            addCriterion(ISysRoleActionRelateDAO.DomainName + " not like",
                buffer.toString(), "domainName");

            return this;
        }

        public Criteria andDomainNameIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainNameEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainName + " in",
                    values, "domainName");

                return this;
            }
        }

        public Criteria andDomainNameNotIn(List<String> values) {
            if (values.size() == 1) {
                return andDomainNameNotEqualTo(values.get(0));
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainName + " not in",
                    values, "domainName");

                return this;
            }
        }

        public Criteria andDomainNameIn(String[] values) {
            if (values.length == 1) {
                return andDomainNameEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainName + " in",
                    Arrays.asList(values), "domainName");

                return this;
            }
        }

        public Criteria andDomainNameNotIn(String[] values) {
            if (values.length == 1) {
                return andDomainNameNotEqualTo(values[0]);
            } else {
                addCriterion(ISysRoleActionRelateDAO.DomainName + " not in",
                    Arrays.asList(values), "domainName");

                return this;
            }
        }

        public Criteria andDomainNameIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameNotIn(BaseQueryBean subQueryBean,
            IDataAccessInterface<?, ?> dao) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " not in ",
                subQueryBean, dao);

            return this;
        }

        public Criteria andDomainNameBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " between",
                value1, value2, "domainName");

            return this;
        }

        public Criteria andDomainNameNotBetween(String value1, String value2) {
            addCriterion(ISysRoleActionRelateDAO.DomainName + " not between",
                value1, value2, "domainName");

            return this;
        }
    }
}
